/*
 * @Author: DESKTOP-DOGAKD5\86185 134668
 * @Date: 2022-11-10 11:33:05
 * @LastEditors: DESKTOP-DOGAKD5\86185 134668
 * @LastEditTime: 2022-11-10 16:37:53
 * @FilePath: \vue2-demo\src\mock\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Mock from 'mockjs';
const baseURL = 'http://localhost:8081'
Mock.mock(`${baseURL}/hotspot/list`, {
    'data|1-10': [{
        "title": "文档",
        'content': '@ctitle(7,12)'
    }]
});
Mock.mock(`${baseURL}/collection/list`, {
    'data|1-10': [{
        "title": "文档",
        'content': '@ctitle(7,12)',
        'time': '@datetime',
        'name': '@ctitle(50,500)'
    }]
});
Mock.mock(`${baseURL}/collection/user`, {
    'data|1-5': [{
        "name": "@ctitle(2,3)",
        'content': '@ctitle(7,12)',
        'time': '@datetime',
    }]
});
Mock.mock(`${baseURL}/my/collection/list`, {
    'data|29-60': [{
        id: '@id()',
        //点赞数量
        'num_yes|1-100': 0, //随机生成0-100整数
        // 取消点赞
        'num_no|1-100': 0, //随机生成0-100整数
        // 点赞
        'fabulous|1': [true, false], //数字1表示随机取数组中的一个值
        'content': '@ctitle(7,12)',
        'time': '@datetime',
        'name': '@ctitle(50,500)'
    }]
});